home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / AMReminder / Add.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-29  |  998 bĀ   |  50 lines  |  [TEXT/CWIE]

  1. /* Add.h -- Modal dialog */
  2.  
  3. #pragma once
  4.  
  5. #include "AMDialog.h"
  6. #include "DReminder.h"
  7.  
  8. /*----------*/
  9. Boolean        GetAdd    (DReminder*        ioData);
  10.  
  11. //----------
  12. struct Add {
  13.     AMDialog        super;
  14.  
  15.     DReminder*        mData;
  16.  
  17.     ControlHandle    mOKHandle;
  18.     ControlHandle    mCancelHandle;
  19.     ControlHandle    mDate2Handle;
  20.     ControlHandle    mTime2Handle;
  21.     ControlHandle    mMessage2Handle;
  22.     ControlHandle    mDisplayIconHandle;
  23.     ControlHandle    mDisplayAlertHandle;
  24.     ControlHandle    mPlaySoundHandle;
  25.     ControlHandle    mSoundPopupHandle;
  26. };
  27. typedef struct Add Add;
  28.  
  29. //----------
  30. Add*        NewAdd ();
  31. void    DeleteAdd        (Add*        window);
  32.  
  33. //public:
  34. void    Add_Init        (Add*    self);
  35. void    Add_Free        (Add*    self);
  36.  
  37. //public:
  38. void    Add_ConnectToData    (Add*    self,
  39.                                  AMSignaler*    inData);
  40.  
  41. //protected:
  42. void    Add_FinishMake         (Add*    self);
  43. void    Add_DoItem            (Add*    self,
  44.                                  SInt16        inItemHit);
  45. void    Add_DataChanged        (Add*    self,
  46.                                  long        inDataID);
  47. Boolean    Add_Filter            (Add*    self,
  48.                                  EventRecord        *ioEvent,
  49.                                  DialogItemIndex    *outItemHit);
  50.